From 4d9db38409e92be99daad3de0db129c0a8d4e4a9 Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Mon, 31 Oct 2005 17:11:24 +0100 Subject: [PATCH] Make check_pkgs work with the Bourne shell --- docs/check_pkgs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/check_pkgs b/docs/check_pkgs index 25a624ef24..a4835a4b91 100644 --- a/docs/check_pkgs +++ b/docs/check_pkgs @@ -1,14 +1,14 @@ silent_which () { - if ! `which $1 1>/dev/null 2>/dev/null`; then + which $1 1>/dev/null 2>/dev/null || { echo "*************************************************" echo "*************************************************" echo "* WARNING: Package '$1' is required" echo "* to build Xen documentation" echo "*************************************************" echo "*************************************************" - fi + } which $1 1>/dev/null 2>/dev/null } -- 2.30.2